﻿using System.IO;

namespace SharePoint.Orm {
	/// <summary>
	/// Interface for ORM types which represent a SharePoint document library.
	/// </summary>
	public interface IDocumentLibrary {
		/// <summary>
		/// Opens a <see cref="Stream"/> for reading the contents of the document library item.
		/// </summary>
		/// <returns>A readonly <see cref="Stream"/> with the contents of the document library item.</returns>
		Stream OpenBinaryStream();
	}
}
